package com.example.jetpacker.lifecycles

import android.util.Log
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

class MyObserverOne : LifecycleObserver {

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    fun activityOnCreate() {
        Log.e("MyObserverOne","onCreate")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    fun activityOnStart() {
        Log.e("MyObserverOne","onStart")
    }
}